import request from '@/utils/request'
import da from "element-ui/src/locale/lang/da";

// 查询【请填写功能名称】列表
export function listRoute(query) {
  return request({
    url: '/backstage/route/list',
    method: 'get',
    params: query
  })
}

// 查询【请填写功能名称】详细
export function getRoute(id) {
  return request({
    url: '/backstage/route/' + id,
    method: 'get'
  })
}

// 新增【请填写功能名称】
export function addRoute(data) {
  return request({
    url: '/backstage/route/add',
    method: 'post',
    data:data
  })
}

// 修改【请填写功能名称】
export function updateRoute(data) {
  return request({
    url: '/backstage/route',
    method: 'put',
    data: data
  })
}

// 删除【请填写功能名称】
export function delRoute(id) {
  return request({
    url: '/backstage/route/' + id,
    method: 'delete'
  })
}

// 导出【请填写功能名称】
export function exportRoute(query) {
  return request({
    url: '/backstage/route/export',
    method: 'get',
    params: query
  })
}
